package com.pureut.production.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.production.domain.DegreasOutputDetail;
import com.pureut.production.domain.dto.DegreasOutputDetailDto;
import com.pureut.production.domain.vo.DegreasOutputDetailVo;
import com.pureut.production.domain.vo.UpdateByDegreasOutDetailVo;

import java.util.List;

/**
 * 脱脂产出明细service
 */
public interface DegreasOutputDetailService extends IService<DegreasOutputDetail> {

    /**
     * 脱脂产出明细列表
     */
    List<DegreasOutputDetailDto> getList(String degreasOrderNumber);

    /**
     * 明细详情
     */
    DegreasOutputDetailDto getView(Long id);

    /**
     * 条码修正
     */
    boolean codeCorrection(DegreasOutputDetailVo degreasOutputDetailVo) throws Exception;

    /**
     * 修改明细检验状态，检验结果及物料等级(品质审核时候调用)
     */
    boolean updateByDegreasOutDetail(UpdateByDegreasOutDetailVo updateByDegreasOutDetailVo);

    /**
     * 修改明细检验物料等级(品质处理时候调用)
     */
    boolean updateByDegreasOutDetailQuality(UpdateByDegreasOutDetailVo updateByDegreasOutDetailVo);

    /**
     * 根据物料号码查询脱脂产出明细详情
     * @param materialNumber
     * @return
     */
    DegreasOutputDetail selectMaterialNumberInfo(String materialNumber);

    /**
     *
     */
    List<DegreasOutputDetailDto> getDetailList(String degreasOrderNumber);

    /**
     * 查询脱脂产出明细
     */
    DegreasOutputDetailDto selectDetailListMaterialNumber(String materialNumber);
}
